use "data\influenza_town_panel.dta",replace

reg log_deaths_town indian_dm1918 post   , vce(cluster  did) 
sum `e(depvar)' if e(sample)
outreg2 using "output\table2",  $outreg_settings  adds(Mean of dep. var, `r(mean)')  replace
reg log_deaths_town indian_dm1918 post indian_dm1918_post  , vce(cluster  did) 
sum `e(depvar)' if e(sample)
outreg2 using "output\table2",  $outreg_settings  adds(Mean of dep. var, `r(mean)')  
reghdfe log_deaths_town   indian_dm1918_post  , vce(cluster  did) absorb( year cid )
sum `e(depvar)' if e(sample)
outreg2 using "output\table2",  $outreg_settings  adds(Mean of dep. var, `r(mean)')  
reghdfe log_deaths_town  indian_dm1918_post   , vce(cluster  did)    absorb( cid  year i.sid#i.year)
sum `e(depvar)' if e(sample)
outreg2 using "output\table2",  $outreg_settings  adds(Mean of dep. var, `r(mean)')  
reghdfe log_deaths_town   indian_dm1918_post  if mean_indian_dm!=0, vce(cluster  did) absorb( year cid i.sid#i.year)
sum `e(depvar)' if e(sample)
outreg2 using "output\table2",  $outreg_settings  adds(Mean of dep. var, `r(mean)')
